package com.yb.guigu.pick.auth.bean.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yb.guigu.pick.core.constant.DateTimeConstant;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/4 13:21
 * FileName: SysRouteDTO
 * Description:
 */

@Data
public class SysRouteDTO {

    private Integer id;

    private String name;

    private String title;

    private String remark;

    private String path;

    private String component;

    private Integer isMenu;

    private String icon;

    private String redirect;

    private String meta;

    private Integer sort;

    private Integer level;

    private Integer isAuth;

    private Integer isLeaf;


    private Integer isMenuLeaf;


    private String routeIdPath;


    private Integer parentId;

    @JsonFormat(pattern = DateTimeConstant.DASH_PATTERN_DATETIME,timezone = DateTimeConstant.TIME_ZONE)
    private LocalDateTime createTime;

    @JsonFormat(pattern = DateTimeConstant.DASH_PATTERN_DATETIME,timezone = DateTimeConstant.TIME_ZONE)
    private LocalDateTime updateTime;

    private List<SysRouteDTO> children;
}
